import { GET_HOT_MOVIES } from '../../actions/actionType'

const initState = {
    hot_movies:null
}

const homeReducer = ( state = initState,action ) => {
    const newState = JSON.parse(JSON.stringify( state ))

    switch( action.type ) {
        case GET_HOT_MOVIES:
           newState.hot_movies = action.payload
        break;

        default:
            break;
    }

    return newState
}

export default homeReducer